import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import qs from 'qs'

Vue.prototype.$qs = qs

Vue.config.productionTip = false

//配置axios，定义原型
Vue.prototype.$http = axios

axios.defaults.headers.common['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
//设置axios的基础路径
Vue.prototype.$http.defaults.baseURL='http://localhost:8080'
Vue.use(ElementUI);

new Vue({
  router,
  render: function (h) { return h(App) }
}).$mount('#app')
